From: Dmitry Gutov Date: Tue, 16 Jul 2013 14:47:23 +0000 (+0400) Subject: * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Do not X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~3370 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=77aea2fbb3fc290a59d84e6534424a09aa8fc41a;p=emacs.git * lisp/progmodes/ruby-mode.el (ruby-font-lock-keywords): Do not highlight question marks in the method names as strings. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d1613283bb7..37c2365cc60 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2013-07-16 Dmitry Gutov + + * progmodes/ruby-mode.el (ruby-font-lock-keywords): Do not + highlight question marks in the method names as strings. + 2013-07-16 Jan Djärv * frame.el (blink-cursor-blinks): New defcustom. diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 0b83921504b..dc3dec87ba8 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el @@ -1864,7 +1864,7 @@ See `font-lock-syntax-table'.") 1 font-lock-negation-char-face) ;; character literals ;; FIXME: Support longer escape sequences. - '("\\?\\\\?\\S " 0 font-lock-string-face) + '("\\_<\\?\\\\?\\S " 0 font-lock-string-face) ) "Additional expressions to highlight in Ruby mode.")